package PTA.javaA;
import java.math.BigDecimal;
import java.util.Scanner;
public class ex09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNextLine()){
            BigDecimal a = new BigDecimal(sc.next());
            BigDecimal b = new BigDecimal(sc.next());
            System.out.println(a.add(b).toString());
            System.out.println(a.multiply(b).toString());

        }



    }
}